package club.calong.sanniu.pojo;
// 团   队: 风讯网络
// 后   端: Dopa
// 开发时间: 2021/7/23 14:28

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

@TableName("content")
public class Plate {

  public static final String ID = "id";
  public static final String SECTION = "section";
  public static final String SUB_SECTION = "sub_section";
  public static final String CONTENT = "content";
  public static final String TITLE = "title";
  public static final String IMAGE = "image";
  public static final String DATE = "date";

  @TableId(value = "id",type = IdType.AUTO)
  private Integer id;
  private String section;
  @TableField(value = "sub_section")
  private String subSection;
  private String content;
  private LocalDate date;
  private String title;
  private String image;

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getImage() {
    return image;
  }

  public void setImage(String image) {
    this.image = image;
  }

  public Plate() { }

  public Plate(Integer id, String section, String subSection, String content, LocalDate date) {
    this.id = id;
    this.section = section;
    this.subSection = subSection;
    this.content = content;
    this.date = date;
  }

  @Override
  public String toString() {
    return "Plate{" +
            "id=" + id +
            ", section='" + section + '\'' +
            ", subSection='" + subSection + '\'' +
            ", content='" + content + '\'' +
            ", date=" + date +
            ", title='" + title + '\'' +
            ", image='" + image + '\'' +
            '}';
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getSection() {
    return section;
  }

  public void setSection(String section) {
    this.section = section;
  }

  public String getSubSection() {
    return subSection;
  }

  public void setSubSection(String subSection) {
    this.subSection = subSection;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public LocalDate getDate() {
    return date;
  }

  public void setDate(LocalDate date) {
    this.date = date;
  }
}
